Skip to content

Use the Git versions of all data structure packages - #55

Merged
flying-sheep merged 8 commits into
mainfrom
datastructures-override
Dec 3, 2026
Merged

flying-sheep merged 8 commits into
mainfrom
datastructures-override

Conversation

@ilia-kats

Copy link
Copy Markdown
Contributor

If there is a breaking change in AnnData that requires its dependents to adapt, these changes may not be released until just before the corresponding AnnData release. So all packages that depend on AnnData and one of its affected dependents will use incompatible versions, causing the integration tests to fail.

Discussion point: Should this be limited to data structure packages, or should we generally test Git versions of all packages?

cc @ori-kron-wis

If there is a breaking change in AnnData that requires its dependents to
adapt, these changes may not be released until just before the
corresponding AnnData release. So all packages that depend on AnnData
and one of its affected dependents will use incompatible versions,
causing the integration tests to fail.
@ilia-kats
ilia-kats force-pushed the datastructures-override branch 4 times, most recently from e1a6fe8 to 6c4b7e0 Compare November 30, 2026 10:59
@ilia-kats
ilia-kats force-pushed the datastructures-override branch from 6c4b7e0 to 080e730 Compare November 30, 2026 11:02
@ilia-kats
ilia-kats marked this pull request as ready for review November 30, 2026 12:13
@flying-sheep

Copy link
Copy Markdown
Member

hm, if we test git versions of all packages, then in the pre job, no?

@ilan-gold ilan-gold left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @flying-sheep's point. In general, I'm happy making the "pre" job flexible - I imagine this sort of kludge will come up again.

@ilia-kats

ilia-kats commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor Author

OK, now we're using Git versions of all scverse packages in the pre job.

Because we now need access to all packages, they are now defined in packages.json instead of in the workflow itself. Installation is a multi-step process:

  1. uv in dry run mode to resolve extras, dependencies, and transitive dependencies
  2. the uv output is postprocessed and scverse packages are replaced with their git versions
  3. uv pip install -r with the result of step 2

Although at the moment it doesn't seem to make a difference. I haven't looked at all packages, but the once that I did look at only depend on the data structures and not on any other scverse package.

@flying-sheep

Copy link
Copy Markdown
Member

why not just create a constraints.txt file that points to the git versions of all scverse packages (except the to-be-tested one), and then we just use that when installing dependencies?

@ilia-kats

Copy link
Copy Markdown
Contributor Author

Do constraints respect extras specified elsewhere? Overrides do not, so I wasn't sure about constraints.

@flying-sheep

Copy link
Copy Markdown
Member

IIRC:

overrides mean “ignore what other places tell you, this is the only version range you need to care about”

constraints mean “if this dependency is included at all, it must satisfy this version range as well as the ones coming from elsewhere”

@ilia-kats

Copy link
Copy Markdown
Contributor Author

Seems to work, thanks.

@ilia-kats

Copy link
Copy Markdown
Contributor Author

So... merge?

Comment thread .github/workflows/integration-test.yml Resolved
@flying-sheep
flying-sheep merged commit 1701500 into main Dec 3, 2026
30 of 45 checks passed
@flying-sheep
flying-sheep deleted the datastructures-override branch December 3, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants